package com.sicau.socialpracticesystem.service;

import com.sicau.socialpracticesystem.entity.param.prize.PrizeQueryParam;
import com.sicau.socialpracticesystem.entity.po.Prize;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sicau.socialpracticesystem.entity.vo.PageDataVO;
import com.sicau.socialpracticesystem.entity.vo.prize.PrizeVO;

/**
 * <p>
 * 奖品表 服务类
 * </p>
 *
 * @author sxt && ttxxi
 * @since 2021-04-26
 */
public interface PrizeService extends IService<Prize> {

    PageDataVO<PrizeVO> queryPrizeByConditions(PrizeQueryParam prizeQueryParam);

    /**
     * 更新消耗的数量
     * @param id id
     * @param consumeNum 消耗的数量
     */
    void updateNumberById(Integer id, Integer consumeNum);

    PrizeVO queryPrizeById(String id);
}
